#pragma once
#include <iostream>
#include "smart_car.h"

// 显示管理模块
class DisplayManager {
public:
    DisplayManager(int carCount, vector<SmartCar>& cars);
    void display();

private:
    std::vector<SmartCar>& _cars;
    int _carCount;
    int _index;
    void displayByIndex(int pos);
};